package com.qianying.service;

import com.qianying.comment.CommonResult;
import com.qianying.entity.Region;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

public interface RegionService {
    CommonResult<?> saveRegion(Region region);
    CommonResult<?> updateRegion(Region region);
    CommonResult<?> deleteRegion(Long id);
    CommonResult<Region> getRegionById(Long id);
    CommonResult<?> listRegions();
    CommonResult<?> pageRegions(Integer pageNum, Integer pageSize);
    CommonResult<?> listByCustomerId(Long customerId);

    CommonResult<Map<Long, String>> getRegionMapByCustomerId(Long customerId);

    Map<Long, String> getRegionMap();
}